aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-03 15:24:31 -0800
committerAdam Soltys <[email protected]>2025-01-03 15:24:31 -0800
commit50296ccde06dc7892b0c6bd1546030f495564b28 (patch)
tree444e26008235c9a57ec2756d8b8fa60133d4e4a9 /src/routes/(app)/[username]
parent1bfdc18184fd57b741f5ebdfb0e323747f4d06b0 (diff)
downloadcoinos-ui-50296ccde06dc7892b0c6bd1546030f495564b28.tar.gz
coinos-ui-50296ccde06dc7892b0c6bd1546030f495564b28.zip
nostr sign in
Diffstat (limited to 'src/routes/(app)/[username]')
-rw-r--r--src/routes/(app)/[username]/(profile)/+page.svelte15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte
index a498f0f7..6530f149 100644
--- a/src/routes/(app)/[username]/(profile)/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/+page.svelte
@@ -8,6 +8,7 @@
import { t } from "$lib/translations";
import { installPrompt } from "$lib/store";
import { afterNavigate, preloadData } from "$app/navigation";
+ import { page } from "$app/stores";
let { data } = $props();
@@ -24,7 +25,9 @@
$installPrompt = null;
};
+ let pubkey = $state();
if (user) user.savings = 0;
+ let { host } = $derived($page.url);
</script>
<div class="space-y-2">
@@ -37,14 +40,16 @@
<a href={`/account/savings`} class="contents">
<button class="btn btn-lg w-full rounded-2xl whitespace-nowrap">
- <iconify-icon noobserver icon="ph:plus-circle-bold" width="32"></iconify-icon>
+ <iconify-icon noobserver icon="ph:plus-circle-bold" width="32"
+ ></iconify-icon>
{$t("accounts.addAccount")}
</button>
</a>
{#if $installPrompt}
<button class="btn btn-accent lg:hidden" onclick={install}>
- <iconify-icon noobserver icon="ph:floppy-disk-bold" width="32"></iconify-icon>
+ <iconify-icon noobserver icon="ph:floppy-disk-bold" width="32"
+ ></iconify-icon>
{$t("user.install")}
</button>
{/if}
@@ -62,7 +67,10 @@
<button
class="btn btn-accent !text-2xl items-center !w-full sm:!max-w-[400px] mx-auto"
>
- <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"
+ <iconify-icon
+ noobserver
+ icon="ph:lightning-fill"
+ class="text-yellow-300"
></iconify-icon>
<div>
{$t("user.pay")}
@@ -72,3 +80,4 @@
</a>
{/if}
</div>
+